<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>圣杯布局</title>
    <style>
        #box{
            height: 100vh;
            background-color: cyan;
        }
        #header{
            height: 100px;
            background-color: pink;
        }
        #side{
            width: 100px;
            float: left;
            height: calc(100vh - 100px);
            background-color: black;
        }
        .main{
            /*overflow: hidden;*/
            float: left;
            width: calc((100% - 100px) / 2) ;
            background-color: white;
            border: 1px solid black;
            height: calc(100vh - 100px);

        }
    </style>
</head>
<body>
<div id="box">
    <div id="header"></div>
    <div id="side"></div>
    <div class="main"></div>
    <div class="main" style="background-color: black;float: right"></div>
</div>
</body>
</html>
